﻿@{
    ViewBag.Title = "Index";
    ViewBag.AppName = "myApp";
}

@section head{
    <style type="text/css">
    </style>
}

<div ng-view></div>

@section scripts{
    <script data-main="/Scripts/app/angular/main" src="~/Scripts/libs/requirejs/require.js"></script>

    <script type="text/javascript">
        //angular.module('portal', ['portalFilters', 'portalServices']).
        //    config(['$routeProvider', function ($routeProvider) {
        //        $routeProvider.
        //            when('/portal', { templateUrl: '/Templates/Angular/portal/index.html', controller: PortalCtrl }).
        //            when('/portal/setting', { templateUrl: '/Templates/Angular/portal/setting.html', controller: SettingCtrl }).
        //            when('/portal/setting/:settingId', { templateUrl: '/Templates/Angular/portal/setting-detail.html', controller: SettingDetailCtrl }).
        //            otherwise({ redirectTo: '/portal' });
        //    }]);

        //angular.module('portalFilters', []).filter('checkmark', function () {
        //    return function (input) {
        //        return input ? '\u2713' : '\u2718';
        //    };
        //});

        //angular.module('portalServices', ['ngResource']).
        //    factory('Portal', function ($resource) {
        //        return $resource('/Angular/PortalServices', {}, {
        //            ListPages: { method: "GET", params: {}, isArray: true },
        //            ListPanels: { method: "GET", params: {}, isArray: true }
        //        });
        //    });

        //function PortalCtrl($scope, Portal) {
        //    $scope.tabs = Portal.query();
        //};

        //function SettingCtrl($scope, Portal) {
        //    $scope.phones = Portal.query();
        //};

        //function SettingDetailCtrl($scope, $routeParams, Portal) {
        //}

    </script>
}
